<?php
/*
 * Creative Bulletin Board Generation 3
 * Version 1.0 Beta 1
 +------------------------------------
 * Forum Application Models: Categories
 * Started: September 2, 2009 11:33 AM
 * Script version: 1.0
 */
class categories{
	public function createCategory($name, $description, $permissionMask){
		return true; # stub
	}
	
	public function select_all(){
		global $_CF;
		if(!isset($this->selectAll)){
			$this->selectAll = $_CF->db->select("categories", "*", 0, " ORDER BY `order` ASC");
		}
		return $this->selectAll;
	}
}
